Twine\forms\inputs\FormInputBase C

Total Complexity 113
Dependencies 10
Dependents 8
Total lines 1,086
Lines of code 369
Logical lines of code 176
Comment lines 453
Methods 56
Properties 18

Methods 56

Method Rating Maintainability Complexity Lines of code
__construct()
A
44 15 45
validate()
S
56 6 19
normalize()
S
52 5 25
getJqueryValdationRules()
S
59 4 16
getInputNameParts()
S
58 4 15
hasValidationStrategy()
S
62 4 11
setDefaultHtmlNameIfEmpty()
S
66 4 8
findRequestForSectionUsingNameParts()
S
60 3 15
removeValidationStrategy()
S
64 4 10
initializeDisplayStrategy()
S
61 3 14
formDataPresentIn()
S
63 3 11
findFormDataForThisSection()
S
66 3 8
htmlClass()
S
72 3 5
constructFinalize()
S
67 3 7
getOtherJsDataFromStrategies()
S
69 2 7
setRequired()
S
65 2 9
enqueueJsFromStrategies()
S
72 2 6
rawValue()
S
66 2 10
disable()
S
65 2 9
sanitize()
S
78 2 3
htmlLabelId()
S
78 2 3
setNormalizedValue()
S
81 1 3
setRawValue()
S
80 1 3
setHtmlLabelText()
S
81 1 3
setHtmlHelpText()
S
81 1 3
required()
S
82 1 3
setRequiredCssClass()
S
81 1 3
requiredCssClass()
S
82 1 3
getOtherJsData()
S
77 1 4
enqueueJs()
S
78 1 4
getDefault()
S
82 1 3
setDefault()
S
74 1 5
htmlHelpClass()
S
82 1 3
prettyValue()
S
82 1 3
getHtmlForInput()
S
81 1 3
setDisplayStrategy()
S
81 1 3
setNormalizationStrategy()
S
81 1 3
getDisplayStrategy()
S
82 1 3
overwriteDisplayStrategy()
S
76 1 4
getNormalizationStrategy()
S
82 1 3
overwriteNormalizationStrategy()
S
76 1 4
getValidationStrategies()
S
82 1 3
addValidationStrategy()
S
76 1 4
getHtml()
S
80 1 3
getHtmlForLabel()
S
80 1 3
normalizedValue()
S
82 1 3
getHtmlForErrors()
S
80 1 3
getHtmlForHelp()
S
80 1 3
htmlName()
S
77 1 4
htmlLabelClass()
S
82 1 3
htmlLabelStyle()
S
82 1 3
htmlLabelText()
S
82 1 3
htmlHelpText()
S
82 1 3
htmlHelpStyle()
S
82 1 3
rawValueInForm()
S
78 1 3
isDisabled()
S
82 1 3